package net.tycmc.cty.ctyms.timejob.iems.job;

import java.util.Date;

import net.tycmc.bulb.common.util.DateUtil;
import net.tycmc.cty.ctyms.timejob.iems.dao.LoadBurDAO;

import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.scheduling.quartz.QuartzJobBean;

/**
 * 载重统计
 * @author chengshichao
 * 创建时间：2012-11-6
 */
public class LoadBurJob extends QuartzJobBean{
	
	private LoadBurDAO loadBurDAO;

	/**
	 * @return the loadBurDAO
	 */
	public LoadBurDAO getLoadBurDAO() {
		return loadBurDAO;
	}

	/**
	 * @param loadBurDAO the loadBurDAO to set
	 */
	public void setLoadBurDAO(LoadBurDAO loadBurDAO) {
		this.loadBurDAO = loadBurDAO;
	}
	
	@Override
	protected void executeInternal(JobExecutionContext arg0)
			throws JobExecutionException {
		Date date = new Date();
		//载重相关信息统计开始
		loadBurDAO.startStat();
		System.out.println(DateUtil.now()+"完成栽植统计用时    "+(new Date().getTime()- date.getTime())/1000+" 秒");
	}
}
